package com.atchangsha.system.constant;

import com.atchangsha.system.common.exception.EnumInterface;

public class MenusConstants {

    public enum MenusEnum implements EnumInterface {
        MENUS_INFO_FILE(-1501,"查询菜品为空"),
        MENUS_SAVE_FILE(-1502,"所插入的菜品已存在"),
        MENUS_UPDATE_FAIL(-1503,"菜单修改失败"),
        MENUS_ISNULL(-1506,"菜单为空"),
        MENUS_UPDATE_SUCCESS(1505,"菜单修改成功"),
        MENUS_INFO_SUCCESS(1506,"查询菜品成功"),
        MENUS_SAVE_SUCCESS(1507,"保存菜品成功"),
        MENUS_DELETE_SUCCESS(1508,"删除菜品成功"),
        MENUS_DELETE_FAIL(-1509,"删除菜品失败"),
        MENUS_LIST_SUCCESS(1510,"查询列表成功"),

        ;


        private int code;
        private String message;

        MenusEnum(int code,String message){
            this.code = code;
            this.message = message;
        }

        @Override
        public int getCode() {
            return code;
        }

        @Override
        public String getMsg() {
            return message;
        }
    }

}
